import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//引入elementui框架
import ElementUI from 'element-ui'
import "element-ui/lib/theme-chalk/index.css"
Vue.use(ElementUI);
// 引入全局组件
import gCom from "./common"
// 注册全局组件
for (let i in gCom) {
  Vue.component(i, gCom[i])
}
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: '9YEwzA6ugzXR6xYgpSD5dRsHA00cKnz6'
});
// 设置基础图片地址
Vue.prototype.$imgUrl = "http://localhost:3000"
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
